﻿<UserControl
  x:Class="Renren.Controls.TitleBlock"
  x:Name="PivotTitleBlockElement"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  mc:Ignorable="d"
  FontFamily="{StaticResource PhoneFontFamilyNormal}"
  FontSize="{StaticResource PhoneFontSizeNormal}"
  Foreground="{StaticResource PhoneForegroundBrush}">

  <Grid x:Name="LayoutRoot">
    <StackPanel Orientation="Horizontal" Height="40">
      <Image x:Name="TitleImage"
             Source="/Images/home.png"
             Height="40" />
      <TextBlock x:Name="TitleTextBlock"
                 Text="{Binding ElementName=PivotTitleBlockElement, Path=Text}"
                 FontSize="24"
                 Foreground="{StaticResource PhoneAccentBrush}"
                 VerticalAlignment="Center" Margin="5,0,0,0" />
    </StackPanel>
  </Grid>
</UserControl>
